<style tyle="text/css">
  .modal-lg {
    width: 70%;
  }
</style>
<div class="modal-header">
  <h4 class="modal-title">接口基本信息</h4>
</div>
<div class="modal-body">
  <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
    <div class="form-group">
      <label class="col-lg-3 control-label">接口名称:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.name" ng-disabled="true">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">接口标识:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.id" ng-disabled="true">
      </div>
    </div>
    <!-- <div class="form-group">
      <label class="col-lg-2 control-label">服务编码:</label>
      <div class="col-lg-4">
        <input type="text" class="form-control" ng-model="obj.center_code" ng-disabled="true">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-2 control-label">模块编码:</label>
      <div class="col-lg-4">
        <input type="text" class="form-control" ng-model="obj.module_code" ng-disabled="true">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-2 control-label">功能编码:</label>
      <div class="col-lg-4">
        <input type="text" class="form-control" ng-model="obj.function_code" ng-disabled="true">
      </div>
    </div> -->
    <div class="form-group">
      <label class="col-lg-3 control-label">接口类型:</label>
      <div class="col-lg-6">
        <div class="radio">
          <label class="i-checks">
            <input type="radio" ng-model="obj.type" value="c" ng-disabled="true"><i></i>方法类接口
          </label>
          <label class="i-checks" style="margin-left: 10px">
            <input type="radio" ng-model="obj.type" value="s" ng-disabled="true"><i></i>XML类接口
          </label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">权限表示:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.auth_code">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">请求头信息:</label>
      <div class="col-lg-6">
        <div class="radio">
          <label class="i-checks">
            <input type="radio" ng-model="obj.gain_header" value="1"><i></i>获取
          </label>
          <label class="i-checks" style="margin-left: 10px">
            <input type="radio" ng-model="obj.gain_header" value="0"><i></i>不获取
          </label>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">开启缓存:</label>
      <div class="col-lg-6">
        <label class="i-switch m-t-xs m-r">
          <input type="checkbox" ng-true-value="'1'" ng-false-value="'0'" ng-model="obj.cache_flag">
          <i></i>
        </label>
      </div>
    </div>
    <div class="form-group" ng-if="obj.cache_flag == '1'">
      <label class="col-lg-3 control-label">缓存参数:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.cache_params">
      </div>
    </div>
    <div class="form-group" ng-if="obj.cache_flag == '1'">
      <label class="col-lg-3 control-label">缓存时间:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.cache_timeint">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">描述:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.description">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">排序:</label>
      <div class="col-lg-6">
        <input type="number" class="form-control" ng-model="obj.sort">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">备注信息:</label>
      <div class="col-lg-6">
        <textarea id="remarks" class="form-control" rows="3" ng-model="obj.remarks"></textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">接口添加时间:</label>
      <div class="col-lg-6">
        <input type="text" class="form-control" ng-model="obj.create_date" ng-disabled="true">
      </div>
    </div>
  </form>
</div>
<div class="modal-footer">
  <button class="btn btn-primary btn-rounded" ng-click="save()">保存</button>
  <button class="btn btn-default btn-rounded" ng-click="cancel()">取消</button>
</div>
